home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Children's Atlas of the United States
/
Children's Atlas of the United States.iso
/
usatlas.inf
< prev
next >
Wrap
Text File
|
1994-10-11
|
4KB
|
148 lines
;; Install the Rand McNally Children's Atlas of the United States
DefineVariables
Logical [Ok] := YesCharacter
Text [ProductName] := Rand McNally Children's Atlas of the United States
Text [ProductShortName] := Children's US Atlas
Text [USAtlasExe] := USATLAS0.EXE
Text [IconFile] := USATLAS.ICO
Text [IconCmd]
Text [IconPath]
Text [ReadmeCmd]
EndDefineVariables
;; Install logo bit map for display
;;CopyFiles
;; from [InstallFromDrive]:\
;; to ShadowDirectory Quietly
;; SETUP.BMP
;; SETUPMSK.BMP
;;EndCopyFiles
;; Setup logo and screen
SetDefaultBitmap off
LoadBitMap 1 [InstallFromDrive]:\SETUP.BMP SETUPMSK.BMP
ShowBitMap 1 @xy(5,5)
;;SetBackgroundColor 0 0 64 191 64 0
ShowWindow Maximized
;; May I see your papers please?
if 808X
[Ok] := NoCharacter
else
if 8018X
[Ok] := NoCharacter
else
if 80286
[Ok] := NoCharacter
Endif
Endif
Endif
if [Ok] = NoCharacter
Dialog
[ProductName] requires at least a 386/25 processor.
A 486/25 or better processor is highly recommended.
EndDialog
SoLong Quietly
Endif
if .NOT. Windows
Dialog
[ProductName] must be setup from Windows
EndDialog
SoLong Quietly
Endif
if WindowsVersion < 3.1
Dialog
[ProductName] must be setup from Windows 3.1 or higher
EndDialog
SoLong Quietly
Endif
[Number1] := MainMemory
[Number2] := ExtendedMemoryPresent
if [Number1] + [Number2] < 7000
Dialog
WARNING: You may experience problems running [ProductShortName]
with less than 8 Megabytes of memory.
EndDialog
Endif
;; Product Introduction Screen
Dialog
Since [ProductName]
is designed to be run from its CD-ROM disk, setup is quite
simple. One or two initialization files, along with an
icon file, will be copied to your Windows directory, and
a new program item will be added to your Program Manager.
That's all there is to it.
EndDialog
[InstallationDirectory] := [WindowsDirectory]
;; This next check seems absurd, but we've had a user report
;; a script error message stating that the destination drive
;; did not exist!
if .NOT. DriveIsPresent InstallationDrive
[InstallationDirectory] := BlankString
Dialog [InstallationDirectory] 44
Setup could not find your Windows directory!
Please supply the path to your Windows directory
(leaving off the final backslash), or type "C:\QUIT"
to quit setup.
EndDialog
if [InstallationDirectory] = C:\QUIT
SoLong Quietly
Endif
Endif
CopyFiles from [InstallFromDrive]:\
USATLAS.INI
USATLAS.ICO
EndCopyFiles
if .NOT. FileExists [InstallationDirectory]\QTW.INI
CopyFiles from [InstallFromDrive]:\
QTW.INI
EndCopyFiles
Endif
;; Use ProgramManagerDDe to create a program group
[IconCmd] := [InstallFromDrive]:\[USAtlasExe]
[IconPath] := [InstallationDirectory]\[IconFile]
[ReadmeCmd] := [InstallationDirectory]\WRITE.EXE [InstallFromDrive]:\README.WRI
ProgramManagerDDe
CreateGroup([ProductShortName])
ReplaceItem([ProductShortName])
AddItem([IconCmd],[ProductShortName],[IconPath],[InstallFromDrive]:\)
ReplaceItem(Read Me)
AddItem([ReadmeCmd],Read Me,WRITE.EXE,BlankString)
EndProgramManagerDDE
;; Exit dialog box and messages
Dialog
[ProductName] installation is complete.
To explore the Atlas, click on the [ProductShortName] icon
in the [ProductShortName] program group.
EndDialog
Procedure DDENonFatalErrorTrap
;; Purpose of DDENonFatalErrorTrap:
;; If a procedure with this name is present in the script and a non-fatal
;; Program Manager DDE error occurs, then this procedure will be executed.
;;
;; Possible Text Error Codes Are:
;; ddeExec%s failed (NOTE: the "%s" is replaced by error types)
;; ddeInitiate failed
;; pmAddItem failed
;; pmClose failed
;; pmCreateGroup failed
;;
;; To trap a DDENonFatalError and respond to it, use the following code
;; [Number1] := PositionOf "PMAddItem" in DDENonFatalError
;; If [Number1] > 0
;; Dialog
;; NonFatal error in AddItem occurred
;; Error Text : DDENonFatalError
;; EndDialog
EndProcedure
EndScript